package com.cqupt.service;

import com.cqupt.pojo.LoginLogEntity;
import com.cqupt.pojo.OperationLogEntity;
import com.cqupt.pojo.ResponseMessage;
import org.springframework.stereotype.Service;

import java.util.List;

public interface LogService {
    /**
     * 保存操作日志
     * @param operationLogEntity
     */
    public void saveLog(OperationLogEntity operationLogEntity);
    /**
     * 保存的登录日志（弃用）
     * @param loginLogEntity
     */
    public void saveLog(LoginLogEntity loginLogEntity);
    /**
     * 查询所有操作日志
     * @return
     */
    public List<OperationLogEntity> getAllOperationLogs();
    /**
     * 根据条件查询操作日志
     * @param startDate
     * @param endDate
     * @param level
     * @param objectModule
     * @param search_text
     * @return
     */
    public List<OperationLogEntity> getAllOperationLogsByFilter(String startDate, String endDate, String level, String objectModule, String search_text);
}
